<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
    <title>支付成功</title>
    <script type="text/javascript" charset="UTF-8"
            src="https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js"></script>
    <style>
        .wrap{text-align:center;}
        h3{font-size:36px;padding-top:30px;}
        a{text-decoration: none;display: inline-block;border:1px solid #ddd;padding:12px 24px;border-radius:8px;font-size:16px;}
    </style>
</head>
<body>
    <div class="wrap">
        <h3>支付成功</h3>
        <a onclick="jumpOut()" href="javascript:;">返回首页</a>
    </div>
</body>
<script type="text/javascript">
    window.onload = function () {
        var mchData = {action: 'onIframeReady', displayStyle: 'SHOW_CUSTOM_PAGE'}
        var postData = JSON.stringify(mchData)
        parent.postMessage(postData, 'https://payapp.weixin.qq.com')
    }
    function jumpOut() {
        var mchData = {action: 'jumpOut', jumpOutUrl: "https://h5.gdzjqxylzx.com/#/"}
        // var mchData = {action: 'jumpOut', jumpOutUrl: "https://h5.hospital.caochuanxi.com/#/"}
        var postData = JSON.stringify(mchData)
        parent.postMessage(postData, 'https://payapp.weixin.qq.com')
    }
</script>
</html>